package sample.dto;

import java.io.Serializable;
import java.util.List;

import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@SuppressWarnings("serial")
@PersistenceCapable(identityType = IdentityType.APPLICATION,detachable="true")
public class Parent implements Serializable {
	
	@PrimaryKey
	@Persistent
	private Key Key;
	@Persistent
	private String Value;
	@Persistent(defaultFetchGroup="true")
	private List<Child> ChildList;
	
	public Parent(){
	}
	
	public Parent(Key Key,String Value){
		this.Key=Key;
		this.Value=Value;
	}
	
	public Parent(Key Key,String Value,List<Child> ChildList){
		this.Key=Key;
		this.Value=Value;
		this.ChildList=ChildList;
	}
	
	public Key getKey() {
		return Key;
	}
	public void setKey(Key key) {
		Key = key;
	}
	public String getValue() {
		return Value;
	}
	public void setValue(String value) {
		Value = value;
	}
	public List<Child> getChildList() {
		return ChildList;
	}
	public void setChildList(List<Child> childList) {
		ChildList = childList;
	}
}
